import type { Profile, tokenParams } from "@/types/user"
import { request } from "@/utils/reuqest"

//登陆
export const loginAPI = (data: object) => {
    return request<tokenParams>('/park/login','POST',data)
}

/**
 * @description: 获取用户信息
 * @param {*} data {}
 * @return {*} promise
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile')
}